import os
path = r"E:\Work_War3\War3MoeHero\MoeHero-master\MoeHero-master\resource\model\[Ruins]"
_list = [
]
_str = ''
for root, dirs, files in os.walk(path):
    for file in files:
        print(file)

path = r'E:\Work_War3\War3MoeHero\MoeHero-master\MoeHero-master\resource\model\[Ruins]'
for tu in _list:
    if tu[0] ~= tu[1]:
        os.rename("%s\\%s"%(path,tu[0]),"%s\\%s"%(path,tu[1]))
